home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93a.txt
/
000073_icon-group-sender _Sun Feb 28 22:53:28 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-04-21
|
1KB
Received: by cheltenham.cs.arizona.edu; Sun, 28 Feb 1993 17:14:05 MST
Via: uk.ac.manchester.computer-science; Sun, 28 Feb 1993 23:10:55 +0000
From: Steve Holden <steve@dtc.co.uk>
Date: Sun, 28 Feb 93 22:53:28 GMT
Message-Id: <2560.9302282253@desktop.desktop.co.uk>
To: rjhare@festival.ed.ac.uk
Subject: Re: environment variables
Cc: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
Roger:
The example you quote of
system("export DISPLAY=bandit.ucs:0")
doesn't work because system creates a subshell to run its commands in.
Changing the environment in that shell doesn't affect the shell under
whose control your program is running, and therefore a
getenv("DISPLAY")
won't see the change you have made. There should really be a setenv()
primitive (oh, no, I'm going to get thirteen hundred piece of mail about
feeping creaturism now ;-) -- but there isn't, as far as I can tell.
regards
Steve
+---------------------------------+-------------------------------------+
| Steve Holden, Technical Director| Desktop Connection Limited |
| steve@desktop.co.uk | Manchester Science Park |
|---------------------------------+ Lloyd Street North |
| Publish and be damned. Publish | Manchester England M15 4EN |
| electronically and be heard. | Tel: +44 61 227 9055 Fax: 226 4922 |
+---------------------------------+-------------------------------------+